﻿using System;
using System.Collections.Generic;

namespace BorgExt
{
    public class DiscoveryEventArgs : EventArgs
    {
        public MetaElementCollection<Contract> Contracts { get; private set; }

        public MetaElementCollection<Plugin> Plugins { get; private set; }

        public DiscoveryEventArgs(ICollection<Contract> contracts, ICollection<Plugin> plugins)
        {
            Contracts = new MetaElementCollection<Contract>(contracts);
            Plugins = new MetaElementCollection<Plugin>(plugins);
        }
    }

    public delegate void DiscoveryEventHandler(DiscoveryEventArgs args);
}

